package com.example.sunsg.okhttptest.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sunsg on 16/3/9.
 */
public class SpotEditItemDescription implements SpotEditItem.SpotEditItemInterface, Parcelable {
    private String description;

    public SpotEditItemDescription() {
    }

    public SpotEditItemDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.description);
    }

    protected SpotEditItemDescription(Parcel in) {
        this.description = in.readString();
    }

    public static final Parcelable.Creator<SpotEditItemDescription> CREATOR = new Parcelable.Creator<SpotEditItemDescription>() {
        public SpotEditItemDescription createFromParcel(Parcel source) {
            return new SpotEditItemDescription(source);
        }

        public SpotEditItemDescription[] newArray(int size) {
            return new SpotEditItemDescription[size];
        }
    };
}
